// ******************************************************************
// * Copyright(c)  Steven Lu
// * Description   : Schema_MST_LOCATION
// * CreateDate    : 2011/9/27 11:24:17
// * Creater       : CodeSmith
// * LastChangeDate: 2011/9/27 11:24:17
// * LastChanger   : 2011/9/27 11:24:17
// * Version Info  : 1.0 For ESOL
// ******************************************************************

using System;
using System.Collections.Generic;
using System.Text;
using Suzsoft.Smart.EntityCore;

namespace ESOL.Common.Schema
{
  	[Serializable]
    public partial class MstLocationTable : TableInfo
    {
		public const string C_TableName = "MST_LOCATION";
		
		public const string C_LOCATION_ID = "LOCATION_ID";
		public const string C_WAREHOUSE_CODE = "WAREHOUSE_CODE";
		public const string C_LOCATION_CODE = "LOCATION_CODE";
		public const string C_LOCATION_NAME = "LOCATION_NAME";
		public const string C_DESCRIPTION = "DESCRIPTION";
        public const string C_ISUSERED = "ISUSERED";
		
		public MstLocationTable()
        {
            _tableName = "MST_LOCATION";
        }
		
		protected static MstLocationTable _current;
        public static MstLocationTable Current
        {
            get
            {
                if (_current == null)
                {
                    Initial();
                }
                return _current;
            }
        }
		
		private static void Initial()
        {
            _current = new MstLocationTable();

            _current.Add(C_LOCATION_ID, new ColumnInfo(C_LOCATION_ID,"LocationId", true, typeof(string)));
            _current.Add(C_WAREHOUSE_CODE, new ColumnInfo(C_WAREHOUSE_CODE,"WarehouseCode", false, typeof(string)));
            _current.Add(C_LOCATION_CODE, new ColumnInfo(C_LOCATION_CODE,"LocationCode", false, typeof(string)));
            _current.Add(C_LOCATION_NAME, new ColumnInfo(C_LOCATION_NAME,"LocationName", false, typeof(string)));
            _current.Add(C_DESCRIPTION, new ColumnInfo(C_DESCRIPTION,"Description", false, typeof(string)));
            _current.Add(C_ISUSERED, new ColumnInfo(C_ISUSERED, "ISUSERED", false, typeof(int)));
		}
		
		public ColumnInfo LOCATION_ID
        {
            get { return this[C_LOCATION_ID]; }
        }
		
		public ColumnInfo WAREHOUSE_CODE
        {
            get { return this[C_WAREHOUSE_CODE]; }
        }
		
		public ColumnInfo LOCATION_CODE
        {
            get { return this[C_LOCATION_CODE]; }
        }
		
		public ColumnInfo LOCATION_NAME
        {
            get { return this[C_LOCATION_NAME]; }
        }
		
		public ColumnInfo DESCRIPTION
        {
            get { return this[C_DESCRIPTION]; }
        }
        public ColumnInfo ISUSERED
        {
            get { return this[C_ISUSERED]; }
        }
		
		
	}
}

